import axios from "@/api";

export function userInfo(data) {
  return axios.get("/user", data).then((resp) => {
    if (resp && resp.code == 1) {
      return resp.data;
    }
    return Promise.reject();
  });
}
